import { axios } from '@/utils/request'

/**
 * 查询线上热门搜索
 *
 * @author fenmou
 * @date 2024-10-28 20:57:32
 */
export function pushSearchPage (parameter) {
  return axios({
    url: '/pushSearch/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 线上热门搜索列表
 *
 * @author fenmou
 * @date 2024-10-28 20:57:32
 */
export function pushSearchList (parameter) {
  return axios({
    url: '/pushSearch/list',
    method: 'get',
    params: parameter
  })
}

export function getDetailByMangerId (parameter) {
  return axios({
    url: '/pushSearch/getDetailByMangerId',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加线上热门搜索
 *
 * @author fenmou
 * @date 2024-10-28 20:57:32
 */
export function pushSearchAdd (parameter) {
  return axios({
    url: '/pushSearch/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑线上热门搜索
 *
 * @author fenmou
 * @date 2024-10-28 20:57:32
 */
export function pushSearchEdit (parameter) {
  return axios({
    url: '/pushSearch/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除线上热门搜索
 *
 * @author fenmou
 * @date 2024-10-28 20:57:32
 */
export function pushSearchDelete (parameter) {
  return axios({
    url: '/pushSearch/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出线上热门搜索
 *
 * @author fenmou
 * @date 2024-10-28 20:57:32
 */
export function pushSearchExport (parameter) {
  return axios({
    url: '/pushSearch/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
